Holds the sources of a program. More...
Public Member Functions | |
ProgramSourcesHolder () | |
~ProgramSourcesHolder () | |
std::string_view | getVertexMemory () const |
std::string_view | getHullMemory () const |
std::string_view | getDomainMemory () const |
std::string_view | getGeometryMemory () const |
std::string_view | getPixelMemory () const |
std::string_view | getComputeMemory () const |
std::string_view | getRaytraceMemory () const |
std::pair< std::string_view, std::string_view > | getDefineMacroVertex (unsigned int index) const |
std::pair< std::string_view, std::string_view > | getDefineMacroHull (unsigned int index) const |
std::pair< std::string_view, std::string_view > | getDefineMacroDomain (unsigned int index) const |
std::pair< std::string_view, std::string_view > | getDefineMacroGeometry (unsigned int index) const |
std::pair< std::string_view, std::string_view > | getDefineMacroPixel (unsigned int index) const |
std::pair< std::string_view, std::string_view > | getDefineMacroCompute (unsigned int index) const |
std::pair< std::string_view, std::string_view > | getDefineMacroRaytrace (unsigned int index) const |
std::vector< std::pair< std::string_view, std::string_view > > | getDefineMacrosVertex () const |
std::vector< std::pair< std::string_view, std::string_view > > | getDefineMacrosHull () const |
std::vector< std::pair< std::string_view, std::string_view > > | getDefineMacrosDomain () const |
std::vector< std::pair< std::string_view, std::string_view > > | getDefineMacrosGeometry () const |
std::vector< std::pair< std::string_view, std::string_view > > | getDefineMacrosPixel () const |
std::vector< std::pair< std::string_view, std::string_view > > | getDefineMacrosCompute () const |
std::vector< std::pair< std::string_view, std::string_view > > | getDefineMacrosRaytrace () const |
unsigned int | getDefineMacroMaxNumber () const |
unsigned int | getDefineMacroMaxNumberPipeline () const |
unsigned int | getDefineMacroNumberCompute () const |
unsigned int | getDefineMacroNumberRaytrace () const |
void | setVertexMemory (const std::string_view &str) |
void | setHullMemory (const std::string_view &str) |
void | setDomainMemory (const std::string_view &str) |
void | setGeometryMemory (const std::string_view &str) |
void | setPixelMemory (const std::string_view &str) |
void | setComputeMemory (const std::string_view &str) |
void | setRaytraceMemory (const std::string_view &str) |
void | addDefineMacroVertex (const std::string_view &key, const std::string_view &value) |
void | addDefineMacroHull (const std::string_view &key, const std::string_view &value) |
void | addDefineMacroDomain (const std::string_view &key, const std::string_view &value) |
void | addDefineMacroGeometry (const std::string_view &key, const std::string_view &value) |
void | addDefineMacroPixel (const std::string_view &key, const std::string_view &value) |
void | addDefineMacroCompute (const std::string_view &key, const std::string_view &value) |
void | addDefineMacroRaytrace (const std::string_view &key, const std::string_view &value) |
bool | hasMinimalDefinitionsPipeline () const |
bool | hasMinimalDefinitionsCompute () const |
bool | hasMinimalDefinitionsGeometry () const |
bool | hasMinimalDefinitionsRaytrace () const |
Holds the sources of a program.
nkGraphics::ProgramSourcesHolder::ProgramSourcesHolder | ( | ) |
Constructor.
nkGraphics::ProgramSourcesHolder::~ProgramSourcesHolder | ( | ) |
Destructor.
std::string_view nkGraphics::ProgramSourcesHolder::getVertexMemory | ( | ) | const |
std::string_view nkGraphics::ProgramSourcesHolder::getHullMemory | ( | ) | const |
std::string_view nkGraphics::ProgramSourcesHolder::getDomainMemory | ( | ) | const |
std::string_view nkGraphics::ProgramSourcesHolder::getGeometryMemory | ( | ) | const |
std::string_view nkGraphics::ProgramSourcesHolder::getPixelMemory | ( | ) | const |
std::string_view nkGraphics::ProgramSourcesHolder::getComputeMemory | ( | ) | const |
std::string_view nkGraphics::ProgramSourcesHolder::getRaytraceMemory | ( | ) | const |
std::pair<std::string_view, std::string_view> nkGraphics::ProgramSourcesHolder::getDefineMacroVertex | ( | unsigned int | index | ) | const |
index | The index of the define to get. |
std::pair<std::string_view, std::string_view> nkGraphics::ProgramSourcesHolder::getDefineMacroHull | ( | unsigned int | index | ) | const |
index | The index of the define to get. |
std::pair<std::string_view, std::string_view> nkGraphics::ProgramSourcesHolder::getDefineMacroDomain | ( | unsigned int | index | ) | const |
index | The index of the define to get. |
std::pair<std::string_view, std::string_view> nkGraphics::ProgramSourcesHolder::getDefineMacroGeometry | ( | unsigned int | index | ) | const |
index | The index of the define to get. |
std::pair<std::string_view, std::string_view> nkGraphics::ProgramSourcesHolder::getDefineMacroPixel | ( | unsigned int | index | ) | const |
index | The index of the define to get. |
std::pair<std::string_view, std::string_view> nkGraphics::ProgramSourcesHolder::getDefineMacroCompute | ( | unsigned int | index | ) | const |
index | The index of the define to get. |
std::pair<std::string_view, std::string_view> nkGraphics::ProgramSourcesHolder::getDefineMacroRaytrace | ( | unsigned int | index | ) | const |
index | The index of the define to get. |
std::vector<std::pair<std::string_view, std::string_view> > nkGraphics::ProgramSourcesHolder::getDefineMacrosVertex | ( | ) | const |
std::vector<std::pair<std::string_view, std::string_view> > nkGraphics::ProgramSourcesHolder::getDefineMacrosHull | ( | ) | const |
std::vector<std::pair<std::string_view, std::string_view> > nkGraphics::ProgramSourcesHolder::getDefineMacrosDomain | ( | ) | const |
std::vector<std::pair<std::string_view, std::string_view> > nkGraphics::ProgramSourcesHolder::getDefineMacrosGeometry | ( | ) | const |
std::vector<std::pair<std::string_view, std::string_view> > nkGraphics::ProgramSourcesHolder::getDefineMacrosPixel | ( | ) | const |
std::vector<std::pair<std::string_view, std::string_view> > nkGraphics::ProgramSourcesHolder::getDefineMacrosCompute | ( | ) | const |
std::vector<std::pair<std::string_view, std::string_view> > nkGraphics::ProgramSourcesHolder::getDefineMacrosRaytrace | ( | ) | const |
unsigned int nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumber | ( | ) | const |
unsigned int nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumberPipeline | ( | ) | const |
unsigned int nkGraphics::ProgramSourcesHolder::getDefineMacroNumberCompute | ( | ) | const |
unsigned int nkGraphics::ProgramSourcesHolder::getDefineMacroNumberRaytrace | ( | ) | const |
void nkGraphics::ProgramSourcesHolder::setVertexMemory | ( | const std::string_view & | str | ) |
str | The sources for the vertex stage. |
void nkGraphics::ProgramSourcesHolder::setHullMemory | ( | const std::string_view & | str | ) |
str | The sources for the hull stage. |
void nkGraphics::ProgramSourcesHolder::setDomainMemory | ( | const std::string_view & | str | ) |
str | The sources for the domain stage. |
void nkGraphics::ProgramSourcesHolder::setGeometryMemory | ( | const std::string_view & | str | ) |
str | The sources for the geometry stage. |
void nkGraphics::ProgramSourcesHolder::setPixelMemory | ( | const std::string_view & | str | ) |
str | The sources for the pixel stage. |
void nkGraphics::ProgramSourcesHolder::setComputeMemory | ( | const std::string_view & | str | ) |
str | The sources for the compute stage. |
void nkGraphics::ProgramSourcesHolder::setRaytraceMemory | ( | const std::string_view & | str | ) |
str | The sources for the raytracing stage. |
void nkGraphics::ProgramSourcesHolder::addDefineMacroVertex | ( | const std::string_view & | key, |
const std::string_view & | value | ||
) |
Adds a define macro for the vertex stage.
key | The key of the define. |
value | The value of the define. |
void nkGraphics::ProgramSourcesHolder::addDefineMacroHull | ( | const std::string_view & | key, |
const std::string_view & | value | ||
) |
Adds a define macro for the hull stage.
key | The key of the define. |
value | The value of the define. |
void nkGraphics::ProgramSourcesHolder::addDefineMacroDomain | ( | const std::string_view & | key, |
const std::string_view & | value | ||
) |
Adds a define macro for the domain stage.
key | The key of the define. |
value | The value of the define. |
void nkGraphics::ProgramSourcesHolder::addDefineMacroGeometry | ( | const std::string_view & | key, |
const std::string_view & | value | ||
) |
Adds a define macro for the geometry stage.
key | The key of the define. |
value | The value of the define. |
void nkGraphics::ProgramSourcesHolder::addDefineMacroPixel | ( | const std::string_view & | key, |
const std::string_view & | value | ||
) |
Adds a define macro for the pixel stage.
key | The key of the define. |
value | The value of the define. |
void nkGraphics::ProgramSourcesHolder::addDefineMacroCompute | ( | const std::string_view & | key, |
const std::string_view & | value | ||
) |
Adds a define macro for the compute stage.
key | The key of the define. |
value | The value of the define. |
void nkGraphics::ProgramSourcesHolder::addDefineMacroRaytrace | ( | const std::string_view & | key, |
const std::string_view & | value | ||
) |
Adds a define macro for the raytracing stage.
key | The key of the define. |
value | The value of the define. |
bool nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsPipeline | ( | ) | const |
bool nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsCompute | ( | ) | const |
bool nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsGeometry | ( | ) | const |
bool nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsRaytrace | ( | ) | const |